export const fetchProduct = ()=>fetch('http://chst.vip/data/index.json').then(body => body.json())


export const loginApi = (params)=>fetch("http://chst.vip/users/login",{
    method:'post', 
    headers:{'content-type': "application/json"},
    body: JSON.stringify(params)
})
.then(body => body.json())